package com.chen.seckill.mapper;

import com.chen.seckill.pojo.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.seckill.pojo.GoodsVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenyuan
 * @since 2021-07-21
 */
@Repository
public interface GoodsMapper extends BaseMapper<Goods> {

    /**
     * 查询商品列表
     * @return
     */
    List<GoodsVO> findGoodsVO();

    /**
     * 获取商品详情信息
     * @param goodsId
     * @return
     */
    GoodsVO findGoodsVOByGoodsId(Long goodsId);
}
